﻿@model QRCodePass.Mvc.ViewModels.Process.ProcessCreateViewModel
@{ ViewBag.Title = "创建流程信息"; }

    <form asp-action="create" method="post" class="mt-3">
        <div asp-validation-summary="All" class="text-danger"></div>

        <div class="form-group row">
            <label asp-for="ProcessId" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <input asp-for="ProcessId" value="@ViewBag.Index" class="form-control" readonly="readonly"/>
                <span asp-validation-for="ProcessId" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group row">
            <label asp-for="Title" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <input asp-for="Title" class="form-control" placeholder="请输入流程名称" />
                <span asp-validation-for="Title" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group row">
            <label asp-for="Description" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <input asp-for="Description" class="form-control" placeholder="请输入" />
                <span asp-validation-for="Description" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group row">
            <label asp-for="BuildList" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <select asp-for="BuildId"
                        class="custom-select mr-sm-2"
                        asp-items="@Model.BuildList">
                    <option value="">请选择</option>
                </select>
                <span asp-validation-for="BuildList" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group row">
            <label asp-for="DepartmentList" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <select asp-for="DepartmentId"
                        class="custom-select mr-sm-2"
                        asp-items="@Model.DepartmentList">
                    <option value="">请选择</option>
                </select>
                <span asp-validation-for="DepartmentList" class="text-danger"></span>
            </div>
        </div>

        <div class="form-group row">
            <label asp-for="ProcList" class="col-sm-2 col-form-label"></label>
            <div class="col-sm-10">
                <select asp-for="PreTask"
                        class="custom-select mr-sm-2"
                        asp-items="@Model.ProcList">
                    <option value="">请选择</option>
                </select>
                <span asp-validation-for="ProcList" class="text-danger"></span>
            </div>
        </div>

        <div class="form-group row">
            <div class="col-sm-10">
                <button type="submit" class="btn btn-primary">创建</button>
            </div>
        </div>
    </form>